package com.baidu.foodrecipe.ui.activity

import android.content.Intent
import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.baidu.foodrecipe.R
import com.baidu.foodrecipe.base.BaseActivity
import com.baidu.foodrecipe.databinding.ActivitySplashBinding
import com.baidu.foodrecipe.utils.startScaleAnim

class SplashActivity : BaseActivity<ActivitySplashBinding>() {
    override fun initUI() {
        super.initUI()

    }

    override fun onResume() {
        super.onResume()
        mBinding.textView.startScaleAnim(1f,1.2f,2000){
            Intent(this,MainActivity::class.java).also {
                startActivity(it)
            }
            overridePendingTransition(R.anim.fade_in,R.anim.fade_out)
            finish()
        }
    }
}